STEP 6: We've finished the function! Let's call it three more times to ask three other questions about the animal.

  • In , drag Call Parameters Into Variable three times indented inside main().
  • Change all three instances of my_function to ask_user_question.
  • Then, change the first my_var to has_scales, the second to eggs_in_water, and the third to has_hair.
  • Change all three instances of my_parameter1 to sprite and my_parameter2 to "question".

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)